package net.samsb.request;

import net.samsb.BaseApplication;
import net.samsb.response.HttpResponseListener;

import okhttp3.Request;

/**
 * Created by Destiny_hao on 2018/3/26.
 */

public class PictureRequest {

    public void getImg(String picURL, int type, int imgCode) {

        final Request request = new Request.Builder()
                .url(picURL)
                .build();

        BaseApplication.mOkHttpClient
                .newCall(request)
                .enqueue(new HttpResponseListener(type, imgCode));
    }

}
